package com.y.ari.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单信息
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * 下单时间
     */
    private LocalDateTime orderTime;

    /**
     * 购买数量
     */
    private Integer buyNumber;

    /**
     * 单个金额
     */
    private BigDecimal price;

    /**
     * 下单用户id
     */
    private Long userId;

    /**
     * 航班id
     */
    private Long flightId;

    /**
     * 舱位ID
     */
    private Long cabinId;

    /**
     * 订单状态
     */
    private Integer status;


}
